import { lazy } from "react"
import { createHashRouter as createRouter } from "react-router-dom"

const menuRouters = [

]

const allRouters = [
  {
    path: "/",
    title: '列表',
    Component: lazy(() => import("@/pages/index")),
  },
  {
    path: "*",
    title: "404",
    Component: lazy(() => import("@/component/exception/404")),
  },
]

const routers = createRouter(allRouters)

export {
  menuRouters,
  allRouters,
}
export default routers
